package com.lwj.framework.constant;

/**
 * 常量定义
 *
 * @author liliwenjian
 *
 */
public class Constant {

	/**
	 * 空字符串
	 */
	public static final String EMPTY_STRING = "";

	/**
	 * 一个空格
	 */
	public static final String BLANK_STRING = " ";

	/**
	 * 冒号
	 */
	public static final String COLON_STRING = ":";

	/**
	 * 生成缓存key的bean名称
	 */
	public static final String CacheKeyGenerator = "cacheKeyGenerator";

	/**
	 * RedisTemplate bean名称
	 */
	public static final String RedisTemplate = "redisTemplate";

	/**
	 * StringRedisTemplate bean名称
	 */
	public static final String StringRedisTemplate = "stringRedisTemplate";

	/**
	 * redis缓存管理器bean名称
	 */
	public static final String RedisCacheManager = "redisCacheManager";

	/**
	 * EhCache缓存管理器bean名称
	 */
	public static final String EhCacheManager = "ehCacheManager";

	/**
	 * 默认缓存名称,缓存过期时间是3小时
	 */
	public static final String DefaultCache = "defaultCache";

	/**
	 * 短时间缓存名称,缓存过期时间是15分钟
	 */
	public static final String ShortTimeCache = "shortTimeCache";

	/**
	 * 长时间缓存名称,缓存过期时间是6小时
	 */
	public static final String LongTimeCache = "longTimeCache";

	/**
	 * 请求日志id
	 */
	public static final String REQUEST_LOGID = "request_logid";

	/**
	 * 单条日志的最大长度
	 */
	public final static int MAX_LOG_LENGTH = 10000;

}
